import http from '../utils/request.js'

// 登录
export function login(data) {
	return http({
		url: '/user/login',
		method: 'GET',
		data: data
	});
};

// 短信验证码
export function getCode(data) {
	return http({
		url: '/user/SmsCode',
		method: 'POST',
		data:data
	});
};

// 注册
export function setRegister(data) {
	return http({
		url: '/user/Register',
		method: 'POST',
		data
	});
};

// 重置密码
export function setReset(data) {
	return http({
		url: '/myuser/Forgetpassword',
		method: 'POST',
		data
	});
};

// 退出登录
export function logout(data) {
	return http({
		url: '/user/logout',
		method: 'POST',
		data
	});
};

// 下载App
export function getDownload() {
	return http({
		url: '/Version/AcquisitionNoToken',
		method: 'GET'
	});
};

export function getPatchManage() {
	return http({
		url: '/Version/Acquisition',
		method: 'GET'
	});
};

